/**
 * 说明：
 *      make all 编译二进制文件
 *      make disassembly 反编译得到汇编
 *      make clean 清除所有编译文件
 */


#include <stddef.h>
#include <stdint.h>
// #include "main.h"

typedef struct sFunctList
{
     int (*cmd_plsy)(uint8_t en, uint32_t id, uint32_t freq, uint32_t num, uint8_t port);
     // int (*cmd_pwm)(bool en, int16_t width, int16_t period, uint8_t port);
} stFunctList;

stFunctList* functList = NULL;

int app_main(int argc, char** argv)
{
    volatile int res = 0;

    functList = (stFunctList*)0x08020000;

    if(NULL != functList->cmd_plsy)
    {
        functList->cmd_plsy(1, 1, 1000, 2000, 0);
    }

    return res;
}

